package edu.jd.movieplatform.c_admin.info.impl;

import edu.jd.movieplatform.c_admin.info.Info;
import edu.jd.movieplatform.c_admin.info.InfoDto;
import edu.jd.movieplatform.c_admin.info.InfoService;
import edu.jd.movieplatform.c_admin.info.dao.InfoDao;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional
public class InfoServiceImpl implements InfoService {
    @Resource
    private InfoDao infoDao;
    @Override
    public Info getC_adminInfo(String m_id) {
        return infoDao.getC_adminInfo(m_id);
    }

    @Override
    public void updateInfo(InfoDto dto) {
        infoDao.updateInfo(dto);
    }
}
